/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package liceo;

import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;

/**
 *
 * @author kndidox
 */
public class itemAl implements ItemListener
{
    panelAl aux;

    itemAl(panelAl g)
    {
        aux = g;
        ocultar();
    }

    public void itemStateChanged( ItemEvent e )
    {
       if(aux.srb.isSelected())
       {
            mostrar();
       }
        else
        {
            ocultar();
        }
    }
    //mostrar contenido
    public void mostrar()
    {
       aux.tpbCB.setVisible(true);
       aux.tpCBT.setVisible(true);

    }

    public void ocultar()
    {
       aux.tpbCB.setVisible(false);
       aux.tpCBT.setVisible(false);

    }

}
